import request from '@/utils/request'

// 运费模板列表
export function getCarriagesApi() {
  return request({
    url: '/manager/carriages'
  })
}

// 删除运费模板
export function delCarriagesApi(id) {
  return request({
    url: `/manager/carriages/${id}`,
    method: 'DELETE'
  })
}

// 新增/编辑运费模板
export function addCarriagesApi(data) {
  return request({
    url: `/manager/carriages`,
    method: 'post',
    data
  })
}

